const fs = require('fs')

let string = fs.readFileSync('./index.string').toString()

let arr = Array.from({length: 20}, () => `<li>${Math.random()}</li>`)

let str = `
  <ul>
    ${arr.join('')}
  </ul>
`
const result = string.replace(/\{\{list\}\}/, str)

fs.writeFileSync('./index.html', result)